#include <stdio.h>
// 定义枚举类型Weekday,表示星期一到星期天，枚举元素的值自动分配，从0到6。
enum Weekday
{
    MONDAY=1,
    TUESDAY,
    WEDNESDAY,
    THURSDAY,
    FRIDAY,
    SATURDAY,
    SUNDAY
};
// 定义枚举类型Month，表示一月到十二月。
// 给枚举元素JANUARY设置了值1，后面的枚举元素从1开始自增，分别是 1到12
enum Month
{
    JANUARY = 1,
    FEBRUARY,
    MARCH,
    APRIL,
    MAY,
    JUNE,
    JULY,
    AUGUST,
    SEPTEMBER,
    OCTOBER,
    NOVEMBER,
    DECEMBER
};
int main(void)
{
    //定义枚举变量day
    enum Weekday day = WEDNESDAY;
    printf("day:%d\n",day);
    return 0;
}